package com.sgb.kjwl.model.entity.pick;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.util.List;


public class EnterpriseBiddingDetailEntity5 {

    /**
     * comNo : 201912057748454
     * zcTenderingApplyDTO : {"area":"370402","address":"天然家园小区(公交站)","lng":126.549156,"province":"370000","city":"370400","tel":"19999999999","remark":"beizhu","lat":45.716221,"contacts":"11"}
     * typeName : 机械设备租赁
     * goods : [{"file":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924510135746557935.doc","propertys":["机械设备名称：1","规格型号：tnt","计量单位：台","数量：100.0000","要求："],"price":11,"remark":"111"},{"file":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924510140083300408.doc","propertys":["机械设备名称：2","规格型号：tnt","计量单位：台","数量：200.0000","要求："],"price":22,"remark":"22"},{"file":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924510140532905461.doc","propertys":["机械设备名称：3","规格型号：tnt","计量单位：台","数量：300.0000","要求："],"price":33,"remark":"33"}]
     * type : 1
     * tenderingAsks : [{"titleType":"质保金","fileName":"1195ec1ecd11746a0163f366d40217d9.jpg","isResponse":2,"contentText":"1.0000元;质保期：12日","fileUrl":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924615114138241810.jpg","askKey":"premium","askDescribe":"11"},{"titleType":"发票要求","fileName":null,"isResponse":2,"contentText":"2","fileUrl":null,"askKey":"invoiceRequire","askDescribe":null},{"titleType":"质量要求","fileName":null,"isResponse":2,"contentText":"3","fileUrl":null,"askKey":"qualityRequire","askDescribe":null},{"titleType":"送货要求","fileName":null,"isResponse":2,"contentText":"4","fileUrl":null,"askKey":"deliverRequire","askDescribe":null},{"titleType":"提货要求","fileName":null,"isResponse":2,"contentText":"5","fileUrl":null,"askKey":"pickRequire","askDescribe":null},{"titleType":"到场时间要求","fileName":null,"isResponse":2,"contentText":"6","fileUrl":null,"askKey":"arrivalTime","askDescribe":null},{"titleType":"计划进场时间","fileName":null,"isResponse":2,"contentText":"2020-09-02 00:00:00","fileUrl":null,"askKey":"planEnterTime","askDescribe":null},{"titleType":"计划退场时间","fileName":null,"isResponse":2,"contentText":"2020-09-04 00:00:00","fileUrl":null,"askKey":"planExitTime","askDescribe":null},{"titleType":"付款方式","fileName":null,"isResponse":2,"contentText":"222323232323232323","fileUrl":null,"askKey":"paymentMethod","askDescribe":null}]
     * name : 测试机械设备
     * regionSAddress : 新疆维吾尔自治区乌鲁木齐天山区碧莲路
     * tenderingApplys : [{"applyContent":"zidingyi","applyTitle":"zidingyi"}]
     * tenderingId : null
     * otherFiles : []
     * tel : 15711393627
     * comName : 西安测试商贸有限公司
     * photoFiles : []
     * contacts : 杭健雯
     */
    @SerializedName("comNo")
    private long comNo;
    @SerializedName("zcTenderingApplyDTO")
    private ZcTenderingApplyDTOEntity zcTenderingApplyDTO; //投标人信息
    @SerializedName("typeName")
    private String typeName;
    @SerializedName("goods")
    private List<GoodsEntity> goods; //清单列表
    @SerializedName("type")
    private int type;
    @SerializedName("tenderingAsks")
    private List<TenderingAsksEntity> tenderingAsks; //响应要求
    @SerializedName("name")
    private String name;
    @SerializedName("tenderBidPeople")
    private String tenderBidPeople; //投标人姓名
    @SerializedName("regionSAddress")
    private String regionSAddress;
    @SerializedName("tenderingApplys")
    private List<TenderingApplysEntity> tenderingApplys; //自定义字段
    @SerializedName("tenderingId")
    private String tenderingId;
    @SerializedName("otherFiles")
    private List<?> otherFiles;
    @SerializedName("tel")
    private String tel;
    @SerializedName("comName")
    private String comName;
    @SerializedName("photoFiles")
    private List<?> photoFiles;
    @SerializedName("contacts")
    private String contacts;
    private String[][] goodsLists;
    private String[] goodsHeaders;
    private String distance;
    private String customerServiceContactsId;

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getCustomerServiceContactsId() {
        return customerServiceContactsId;
    }

    public void setCustomerServiceContactsId(String customerServiceContactsId) {
        this.customerServiceContactsId = customerServiceContactsId;
    }

    public String[][] getGoodsLists() {
        return goodsLists;
    }

    public void setGoodsLists(String[][] goodsLists) {
        this.goodsLists = goodsLists;
    }

    public String[] getGoodsHeaders() {
        return goodsHeaders;
    }

    public void setGoodsHeaders(String[] goodsHeaders) {
        this.goodsHeaders = goodsHeaders;
    }

    public String getTenderBidPeople() {
        return tenderBidPeople;
    }

    public void setTenderBidPeople(String tenderBidPeople) {
        this.tenderBidPeople = tenderBidPeople;
    }

    public void setComNo(long comNo) {
        this.comNo = comNo;
    }

    public void setZcTenderingApplyDTO(ZcTenderingApplyDTOEntity zcTenderingApplyDTO) {
        this.zcTenderingApplyDTO = zcTenderingApplyDTO;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setGoods(List<GoodsEntity> goods) {
        this.goods = goods;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setTenderingAsks(List<TenderingAsksEntity> tenderingAsks) {
        this.tenderingAsks = tenderingAsks;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRegionSAddress(String regionSAddress) {
        this.regionSAddress = regionSAddress;
    }

    public void setTenderingApplys(List<TenderingApplysEntity> tenderingApplys) {
        this.tenderingApplys = tenderingApplys;
    }

    public void setTenderingId(String tenderingId) {
        this.tenderingId = tenderingId;
    }

    public void setOtherFiles(List<?> otherFiles) {
        this.otherFiles = otherFiles;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public void setPhotoFiles(List<?> photoFiles) {
        this.photoFiles = photoFiles;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public long getComNo() {
        return comNo;
    }

    public ZcTenderingApplyDTOEntity getZcTenderingApplyDTO() {
        return zcTenderingApplyDTO;
    }

    public String getTypeName() {
        return typeName;
    }

    public List<GoodsEntity> getGoods() {
        return goods;
    }

    public int getType() {
        return type;
    }

    public List<TenderingAsksEntity> getTenderingAsks() {
        return tenderingAsks;
    }

    public String getName() {
        return name;
    }

    public String getRegionSAddress() {
        return regionSAddress;
    }

    public List<TenderingApplysEntity> getTenderingApplys() {
        return tenderingApplys;
    }

    public String getTenderingId() {
        return tenderingId;
    }

    public List<?> getOtherFiles() {
        return otherFiles;
    }

    public String getTel() {
        return tel;
    }

    public String getComName() {
        return comName;
    }

    public List<?> getPhotoFiles() {
        return photoFiles;
    }

    public String getContacts() {
        return contacts;
    }

    public class ZcTenderingApplyDTOEntity {
        /**
         * area : 370402
         * address : 天然家园小区(公交站)
         * lng : 126.549156
         * province : 370000
         * city : 370400
         * tel : 19999999999
         * remark : beizhu
         * lat : 45.716221
         * contacts : 11
         */
        @SerializedName("area")
        private String area;
        @SerializedName("address")
        private String address;
        @SerializedName("lng")
        private double lng;
        @SerializedName("province")
        private String province;
        @SerializedName("city")
        private String city;
        @SerializedName("tel")
        private String tel;
        @SerializedName("remark")
        private String remark;
        @SerializedName("lat")
        private double lat;
        @SerializedName("contacts")
        private String contacts;

        public String getMoney() {
            if (TextUtils.isEmpty(money)){
                return "";
            }
            return money.replace(".0","");
        }

        public void setMoney(String money) {
            this.money = money;
        }

        @SerializedName("money")
        private String money;

        public void setArea(String area) {
            this.area = area;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public void setLng(double lng) {
            this.lng = lng;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }

        public void setContacts(String contacts) {
            this.contacts = contacts;
        }

        public String getArea() {
            return area;
        }

        public String getAddress() {
            return address;
        }

        public double getLng() {
            return lng;
        }

        public String getProvince() {
            return province;
        }

        public String getCity() {
            return city;
        }

        public String getTel() {
            return tel;
        }

        public String getRemark() {
            return remark;
        }

        public double getLat() {
            return lat;
        }

        public String getContacts() {
            return contacts;
        }
    }

    public class GoodsEntity {
        /**
         * file : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924510135746557935.doc
         * propertys : ["机械设备名称：1","规格型号：tnt","计量单位：台","数量：100.0000","要求："]
         * price : 11
         * remark : 111
         */
        @SerializedName("file")
        private String file;
        @SerializedName("propertys")
        private List<String> propertys;
        @SerializedName("price")
        private String price;
        @SerializedName("remark")
        private String remark;
        @SerializedName("quantity")
        private String quantity;
        @SerializedName("goodsId")
        private String goodsId;

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public void setFile(String file) {
            this.file = file;
        }

        public void setPropertys(List<String> propertys) {
            this.propertys = propertys;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getFile() {
            return file;
        }

        public List<String> getPropertys() {
            return propertys;
        }

        public String getPrice() {
            if (TextUtils.isEmpty(price)){
                price = "";
            }
            return price;
        }

        public String getRemark() {
            return remark;
        }
    }

    public static class TenderingAsksEntity{
        /**
         * titleType : 质保金
         * fileName : 1195ec1ecd11746a0163f366d40217d9.jpg
         * isResponse : 2
         * contentText : 1.0000元;质保期：12日
         * fileUrl : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/zhaocai/650000/20200924615114138241810.jpg
         * askKey : premium
         * askDescribe : 11
         */
        @SerializedName("titleType")
        private String titleType;
        @SerializedName("fileName")
        private String fileName;
        @SerializedName("isResponse")
        private int isResponse = 1; //1:未响应 2：响应
        @SerializedName("contentText")
        private String contentText;
        @SerializedName("fileUrl")
        private String fileUrl;
        @SerializedName("askKey")
        private String askKey;
        @SerializedName("askDescribe")
        private String askDescribe;

        //是否展开
        private boolean isExpandable = false;

        public boolean isExpandable() {
            return isExpandable;
        }

        public void setExpandable(boolean expandable) {
            isExpandable = expandable;
        }

        public void setTitleType(String titleType) {
            this.titleType = titleType;
        }

        public void setFileName(String fileName) {
            this.fileName = fileName;
        }

        public void setIsResponse(int isResponse) {
            this.isResponse = isResponse;
        }

        public void setContentText(String contentText) {
            this.contentText = contentText;
        }

        public void setFileUrl(String fileUrl) {
            this.fileUrl = fileUrl;
        }

        public void setAskKey(String askKey) {
            this.askKey = askKey;
        }

        public void setAskDescribe(String askDescribe) {
            this.askDescribe = askDescribe;
        }

        public String getTitleType() {
            return titleType;
        }

        public String getFileName() {
            return fileName;
        }

        public int getIsResponse() {
            return isResponse;
        }

        public String getContentText() {
            return contentText;
        }

        public String getFileUrl() {
            return fileUrl;
        }

        public String getAskKey() {
            return askKey;
        }

        public String getAskDescribe() {
            return askDescribe;
        }
    }

    public static class TenderingApplysEntity {
        /**
         * applyContent : zidingyi
         * applyTitle : zidingyi
         */
        @SerializedName("applyContent")
        private String applyContent;
        @SerializedName("applyTitle")
        private String applyTitle;

        public void setApplyContent(String applyContent) {
            this.applyContent = applyContent;
        }

        public void setApplyTitle(String applyTitle) {
            this.applyTitle = applyTitle;
        }

        public String getApplyContent() {
            return applyContent;
        }

        public String getApplyTitle() {
            return applyTitle;
        }
    }
}
